{% import '_macros.html' as macros %}
{% extends 'basemodel.html' %}


{% block title %}Home Page{% endblock %}

{% block content %}
<!--Message List-->
<div class="container">
    {% for i in passage_info %}
    <div class="row">
        <div class="col">
            <a href="{{url_for('passagesview.view_the_passage',passage_name=i.passage_name)}}" class="hvr-grow">
                <div class="card border">
                    <div class="card-body bg-light">
                        <h4 class="card-title">{{i.passage_name}}</h4>
                        <p class="card-text">{{i.passage_somesource}}</p>
                    </div>
                </div>
            </a>
        </div>
    </div>
    {% endfor %}

    <div class="row">
        <div class="col">
            {{macros.pagination_list(pagination, endpoint)}}
        </div>
    </div>
</div>
{% endblock %}